package com.kangye.learnteacher.mapper;
import com.kangye.learnteacher.entity.QuestionBank;
import com.kangye.learnteacher.entity.StudentPaper;
import com.kangye.learnteacher.entity.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: learndeduo
 * @description: 试卷接口
 * @author: 冯钧豪
 * @create: 2021-05-17 19:07
 **/
@Mapper
@Repository
public interface PaperMapper {
   /**
    *  查询试卷列表接口
    * */
    List<StudentPaper> selPaper(@Param("sp_id") Integer spId, @Param("classes_name") String classesName);
   /**
    * 删除试卷接口
    * */
    Integer delPaper(Integer spId);
    /**
    *修改试卷接口
     */
     List<Map<String,Object>> updPaper(Integer spId);
    /**
     * 渲染学科下拉框数据
     */
      List<Subject> XkSelAll();
    /**
     *  题库列表
     */
    List<QuestionBank> SelBank();
    /**
     *  添加题库列表
     */
    Integer AddPaper(StudentPaper studentPaper);
    /**
     *  查询题库列表
     */
    QuestionBank AddPaperUl(Integer qbId);
}



